package net.ghsoft.Convert
{
	import net.ghsoft.SetupGlobal;
	
	public class ConvertRain
	{
		/**
		 * 获取本地温度
		 */ 
		public static function getLocalRain(value:Number):Number
		{
			var result:Number = value;
			
			if(SetupGlobal.RainUnitLocal == "IN")
			{
				result = result * 1.8;
			}
			return Number(result.toFixed(1));
		}
		
		/**
		 * 获取本地温度
		 */ 
		public static function getLocalRainString():String
		{
			var result:String = "mm";
			
			if(SetupGlobal.RainUnitLocal == "IN")
			{
				result = "in"
			}
			return result;
		}
	}
}